<?php
/**
 * Geneone: Content Management Framework
 * Logout
 *
 * http://geneone.neondragon.net/
 *
 * @package Geneone
 * @author Khlo
 * @version 1.0
 * @copyright 2004-2006 Geneone Development Team
 */
 
class Gene_Special_Logout {
	/**
	 * Default Action
	 */
	function main() {
		$auth =& Gene::getAuth();
		$auth->logout();
		
		if ($r = Gene_Request::getString("r", GENE_REQUEST_GET)) {
			header ("Location: ".Gene::makeLink($r));
		} else {
			header ("Location: ".Gene::makeLink(Gene::getSetting("default_obj")));
		}
		exit();
	}
}

?>